package com.mc.moring.bean

/**
 *
 * @ProjectName:    Monicash
 * @Package:        com.moring.moring.bean
 * @ClassName:      CreditGetResultDataBean
 * @Author:         ANWEN
 * @CreateDate:     2024/1/9 21:58
 * @UpdateUser:
 * @UpdateDate:     2024/1/9 21:58
 * @UpdateRemark:
 * @Version:
 */
class CreditGetResultBean {
    /**
     * code : 0000
     * msg : Action completed successfully
     * data : {"productId":"210415","groupId":"0","creditAmount":30000,"limitDays":null,"productInfoList":[{"productId":"210415","groupId":"0","limitDays":60,"periods":4,"totalRate":0.012,"totalLimitDays":60,"creditLine":30000,"minApplyAmount":30000,"productIndex":0,"userGroup":"B","preFeeRate":0.15,"beheadOnly":0,"dailyInterest":"360","totalInterestCharge":"21602","firstDueDate":1705978799999,"sp":false}],"ltvMark":null,"tryCalculate":null}
     */
    private var code: String? = null
    private var msg: String? = null

    /**
     * productId : 210415
     * groupId : 0
     * creditAmount : 30000
     * limitDays : null
     * productInfoList : [{"productId":"210415","groupId":"0","limitDays":60,"periods":4,"totalRate":0.012,"totalLimitDays":60,"creditLine":30000,"minApplyAmount":30000,"productIndex":0,"userGroup":"B","preFeeRate":0.15,"beheadOnly":0,"dailyInterest":"360","totalInterestCharge":"21602","firstDueDate":1705978799999,"sp":false}]
     * ltvMark : null
     * tryCalculate : null
     */
    private var data: DataBean? = null
    fun getCode(): String? {
        return code
    }

    fun setCode(code: String?) {
        this.code = code
    }

    fun getMsg(): String? {
        return msg
    }

    fun setMsg(msg: String?) {
        this.msg = msg
    }

    fun getData(): DataBean? {
        return data
    }

    fun setData(data: DataBean?) {
        this.data = data
    }

    class DataBean {
        var productId: String? = null
        var groupId: String? = null
        var creditAmount = 0
        var limitDays: Any? = null
        var ltvMark: Any? = null
        var tryCalculate: Any? = null

        /**
         * productId : 210415
         * groupId : 0
         * limitDays : 60
         * periods : 4
         * totalRate : 0.012
         * totalLimitDays : 60
         * creditLine : 30000
         * minApplyAmount : 30000
         * productIndex : 0
         * userGroup : B
         * preFeeRate : 0.15
         * beheadOnly : 0
         * dailyInterest : 360
         * totalInterestCharge : 21602
         * firstDueDate : 1705978799999
         * sp : false
         */
        var productInfoList: List<ProductInfoListBean>? = null

        class ProductInfoListBean {
            var productId: String? = "210415"
            var groupId: String? = "0"
            var limitDays = 60
            var periods = 4
            var totalRate = 0.012
            var totalLimitDays = 60
            var creditLine = 30000
            var minApplyAmount = 30000
            var productIndex = 0
            var userGroup: String? = "B"
            var preFeeRate = 0.15
            var beheadOnly = 0
            var dailyInterest: String? = "360"
            var totalInterestCharge: String? = "21602"
            var firstDueDate: Long = 1705978799999
            var isSp = false
        }
    }
}
